<html DIR="LTR" xmlns:MSHelp="http://msdn.microsoft.com/mshelp" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:tool="http://www.microsoft.com/tooltip"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=Windows-1252"></META><META NAME="save" CONTENT="history"></META><title>Creating Relationships Between Work Items and Other Resources</title><STYLE TYPE="text/css">
    body
    {
        background:    #FFFFFF;
        color: #000000;
        font-family:    Verdana;
        font-size: medium;
        font-style: normal;
        font-weight: normal;
        margin-top:    0;
        margin-bottom:    0;
        margin-left:    0;
        margin-right:    0;
        width:    100%;
    }
    
    a
    {
        color:    #0000FF;
    }
    
    a:visited
    {
        color:    #0000FF;
    }
    
    a:link
    {
        color:    #0000FF;
    }
    
    a:hover
    {
        color:    #FF0000;
        cursor: hand;
    }
    
    a:active
    {
        color:    #FF0000;
        cursor: hand;
    }
    
    div#mainSection
    {
        font-size: 70%;
        width: 100%;
    }
    
    div#mainBody
    {
        font-size: 90%;
        margin-left:    5;
        margin-top: 10;
        padding-bottom: 20;
    }
    
    div#header
    {
        background-color: #D4DFFF;
        padding-top:    0;
        padding-bottom:    0;
        padding-left:    0;
        padding-right:    0;
        width:    100%;
    }
    
    div#header table
    {
        border-bottom-color: #C8CDDE;
        border-bottom-style: solid;
        border-bottom-width: 1;
        width:    100%;
    }
    
    span#runningHeaderText
    {
        color: #003399;
        font-size: 90%;
    }
    
    span#nsrTitle
    {
        color: #003399;
        font-size: 125%;
        font-weight: 600;
    }
    
    div#header table td
    {
        color: #0000FF;
        font-size: 70%;
        margin-top:    0;
        margin-bottom:    0;
        padding-right: 20;
    }
    
    div#header table tr#headerTableRow3 td
    {
        padding-bottom: 2;
        padding-top: 5;
    }
    
    div#header table#bottomTable
    {
        border-top-color: #FFFFFF;
        border-top-style: solid;
        border-top-width: 1;
        text-align: left;
    }
    
    div#footer
    {
        font-size: 90%;
        margin-top:    0;
        margin-bottom:    0;
        margin-left:    0;
        margin-right:    0;
        padding-top:    2;
        padding-bottom:    2;
        padding-left:    2;
        padding-right:    2;
        width:    100%;
    }
    
    hr#footerHR
    {
        border-bottom-color: #EEEEFF;
        border-bottom-style: solid;
        border-bottom-width: 1;
        border-top-color: C8CDDE;
        border-top-style: solid;
        border-top-width: 1;
        height: 3;
        color: #D4DFFF;
    }
    
    div.section
    {
        padding-top:    2;
        padding-bottom:    2;
        padding-left:    16;
        padding-right:    15;
        width:    100%;
    }
    
    .heading
    {
        font-weight:    bold;
        margin-top:        18;
        margin-bottom:    8;
    }
    
    h1.heading
    {
        color: #003399;
        font-size:    125%;
    }
    
    .subHeading
    {
        font-weight:    bold;
        margin-bottom:    4;
    }
    
    h3.subHeading
    {
        color:  #003399;
        font-size: 115%;
        font-weight: bold;
    }
    
    h4.subHeading
    {
        color: #003399;
        font-size: 105%;
    }
    
    h5.subHeading
    {
        color: #003399;
        font-size: 100%;
    }
    
    img.toggle
    {
    	border: 0;
	margin-right: 5;
    }

    img.copyCodeImage
    {
	border: 0;
	margin-right: 3;
    }

    img.downloadCodeImage
    {
	border: 0;
	margin-right: 3;
    }

    img.viewCodeImage
    {
	border: 0;
	margin-right: 3;
    }

    img.note
    {
	border: 0;
	margin-right: 3;
    }

    img#languageFilterImage
    {
	border: 0;
	margin-left: 10;
	vertical-align: middle;
    }

    img#membersOptionsFilterImage
    {
	border: 0;
	margin-left: 10;
	vertical-align: middle;
    }

    img#toggleAllImage
    {
	margin-left: 4;
	vertical-align: middle;
    }
    
    div#mainSection table
    {
        border: 0;
        font-size: 100%;
        width:    100%;
    }
    
    div#mainSection table th
    {
        background:    #EFEFF7;
        border-bottom-color: #C8CDDE;
        border-bottom-style: solid;
        border-bottom-width: 1;
        color: #000066;
        padding-left: 5;
        padding-right: 5;
    }
    
    div#mainSection table td
    {
        background:    #F7F7FF;
        border-top-color: #FFFFFF;
        border-top-style: solid;
        border-top-width: 1;
        padding-left: 5;
        padding-right: 5;
    }
    
    div#mainSection table td.imageCell
    {
        white-space: nowrap;
    }
    
    div.code table
    {
        border: 0;
        font-size: 95%;
        margin-bottom: 5;
        width: 100%
    }
    
    div.code table th
    {    
        background:    #EFEFF7;
        border-bottom-color: #C8CDDE;
        border-bottom-style: solid;
        border-bottom-width: 1;
        color: #000066;
        font-weight: bold;
        padding-left: 5;
        padding-right: 5;
    }
    
    div.code table td
    {
        background:    #F7F7FF;
        border-top-color: #FFFFFF;
        border-top-style: solid;
        border-top-width: 1;
        padding-left: 5;
        padding-right: 5;
        padding-top: 5;
    }
    
    div.alert table
    {
        border: 0;
        font-size: 100%;
        width:    100%;
    }
    
    div.alert table th
    {
        background:    #EFEFF7;
        border-bottom-width: 0;
        color: #000066;
        padding-left: 5;
        padding-right: 5;
    }
    
    div.alert table td
    {
        background:    #F7F7FF;
        border-top-color: #FFFFFF;
        border-top-style: solid;
        border-top-width: 1;
        padding-left: 5;
        padding-right: 5;
    }
    
    .copyCode
    {
        color: #0000ff;
        font-size: 90%;
        font-weight: normal;
    }
    
    .downloadCode
    {
        color: #0000ff;
        font-size: 90%;
        font-weight: normal;
    }
    
    .viewCode
    {
        color: #0000ff;
        font-size: 90%;
        font-weight: normal;
    }
    
    div.code pre
    {
        font-family:    Monospace, Courier New, Courier;
        font-size: 105%;
        color:    #000066;
        word-wrap:    break-word;
    }
    
    code
    {
        font-family:    Monospace, Courier New, Courier;
        font-size: 105%;
        color:    #000066;
    }
    
    dl
    {
        margin-top:    0;
        padding-left:    1;
    }
    
    dt
    {
        font-style:    italic;
    }
    
    dd
    {
        margin-bottom:    0;
        margin-left:    0;
    }
    
    ul
    {
        margin-left: 17;
        list-style-type: disc;
    }
    
    ul ul
    {
        margin-bottom: 4;
        margin-left: 17;
        margin-top: 3;
        list-style-type: disc;
    }
    
    ol
    {
        margin-left: 24;
        list-style-type: decimal;
    }
    
    ol ol
    {
        margin-bottom: 4;
        margin-left: 24;
        margin-top: 3;
        list-style-type: lower-alpha;
    }
    
    li
    {
        margin-bottom: 3;
    }
    
    p
    {
        margin-top: 0;
        margin-bottom: 15;
    }
    
    .tip
    {
        color:    #0000FF;
        font-style: italic;
        cursor:hand;
        text-decoration:underline;
    }
    
    .languageFilter
    {
        color:    #0000FF;
        cursor:hand;
        text-decoration:underline;
        padding-bottom:4;
    }
    
    .math
    {
        font-family: Times New Roman;
        font-size: 125%
    }
    
    .sourceCodeList
    {
        font-family: Verdana;
        font-size: 90%;    
    }
    
    pre.viewCode
    {
        width: 100%;
        overflow: auto;
    }
    
    MSHelp\:link
    {
        text-decoration: underline;
        color: #0000ff; 
        hoverColor: #3366ff;
        filterString: ;
    }
</STYLE>
</head>
<body><input type="hidden" id="userDataCache" class="userDataStyle"></input><input type="hidden" id="hiddenScrollOffset"></input><img id="dropDownImage" style="display:none; height:0; width:0;" src="drpdown.gif"><img id="dropDownHoverImage" style="display:none; height:0; width:0;" src="drpdown_orange.gif"><img id="collapseImage" style="display:none; height:0; width:0;" src="collapse.gif"><img id="expandImage" style="display:none; height:0; width:0;" src="exp.gif"><img id="copyImage" style="display:none; height:0; width:0;" src="copycode.gif"><img id="copyHoverImage" style="display:none; height:0; width:0;" src="copycodeHighlight.gif"><div id="header"><table width="100%" id="topTable"><tr id="headerTableRow1"><td align="left"><span id="runningHeaderText"></span></td></tr><tr id="headerTableRow2"><td align="left"><span id="nsrTitle">Creating Relationships Between Work Items and Other Resources</span></td></tr><tr id="headerTableRow3"></tr></table></div><div id="mainSection"><div id="mainBody"><div id="allHistory" class="saveHistory"></div>
				<p>By creating relationships between work items and other resources, you can plan projects more effectively; track dependencies more accurately; view hierarchical relationships more clearly; and find relevant information more quickly. For example, you can create a relationship between two work items to show that one of the items must be completed first. In addition, you can create a relationship between a work item and a changeset to show how the code was changed to address a feature request.</p>
				<p>You can create the following types of relationships by using a variety of link types:</p>
				<ul><li class="unordered">
						Link a work item to one or more other work items. You can create links between work items to track dependencies and view hierarchical relationships. When you create a link, you always specify the type of link that you want to create. You can link work items that reside in the same team project or in different team projects on the same server that is running Visual Studio Team Foundation Server
. For an overview of the benefits, uses, and restrictions of various types of links, see <a href="chooselinktype.htm" target="_blank">Choosing Link Types to Effectively Track Your Project</a>.<br /><br />
					</li><li class="unordered">
						Link a work item to a changeset or a file that is under version control. You can create links between work items and changesets or files that are under version control to track which code changes completed or addressed a feature, task, or bug. To create this kind of link, your team must use Team Foundation
 for version control, and you must specify the <b>Changeset</b> or <b>Versioned Item</b> type of link.<br /><br />
					</li><li class="unordered">
						Link a work item to a Web site or server location. You can create a link between a work item and a file that is stored elsewhere, a URL, or a server location. To create this kind of link, you must specify the <b>Hyperlink</b> type of link.<br /><br />
					</li><li class="unordered">
						Attach a file to a work item. You can help track or implement a work item by finding or creating a file that has additional details and attaching the file to the work item. For example, you can capture and attach a screen image that illustrates a problem, a line of code in a text file, or a product feature's specification. You can attach any kind of file such as a document, an image, a log file, or an e-mail thread to a work item.<br /><br />
					</li></ul>
				<p>All links and attachments are stored in the work item database for Team Foundation
. When you add or delete links or attachments, your changes are applied immediately to that database.</p>
				<p>You can create links or attach files from a work item form or from a work item that appears in a list of query results. You can also use any of the client programs for Team Foundation
, such as Team Explorer
 and Team Web Access
, to create links or attach files.</p>
			<h1 class="heading">Common Tasks</h1><div id="sectionSection0" class="section"><content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
					<h3 class="subHeading" xmlns=""></h3><table xmlns=""><tr>
								<th>
									Task
								</th>
								<th>
									Supporting Content
								</th>
							</tr><tr>
							<td>
								<p>
									<b>Understand what types of links support your project needs.</b> Before you start to create links between work items, you should analyze how you might use links to plan your project and track the status of work items.</p>
							</td>
							<td>
								<ul><li class="unordered">
										
											<a href="chooselinktype.htm" target="_blank">Choosing Link Types to Effectively Track Your Project</a>
										<br /><br />
									</li></ul>
							</td>
						</tr><tr>
							<td>
								<p>
									<b>Create and manage links between work items.</b> You can create, modify, and delete links between work items. You can create multiple links at a time.</p>
							</td>
							<td>
								<ul><li class="unordered">
										
											<a href="createrelationship.htm" target="_blank">Create or Delete Relationships Between Work Items</a>
										<br /><br />
									</li></ul>
							</td>
						</tr><tr>
							<td>
								<p>
									<b>View information about a linked work item.</b> From a work item form, you can open one or more work items that are linked to the open work item.</p>
								<div class="alert"><table width="100%" cellspacing="0" cellpadding="0"><tr><th align="left">Note </th></tr><tr><td>
									If you open a work item from a link in Team Explorer
 or Team Web Access
, you can both review and modify the work item.<p></p>
								</td></tr></table><p></p></div>
							</td>
							<td>
								<ul><li class="unordered">
										
											<a href="openwitemfromlink.htm" target="_blank">Open a Work Item from a Work Item Link</a>
										<br /><br />
									</li></ul>
							</td>
						</tr><tr>
							<td>
								<p>
									<b>Share information by linking to files or Web pages or by attaching files to a work item.</b> You can add a hyperlink from a work item to a Web page or a document on a Web site. You can attach, open, and remove files such as e-mail threads, documents, images, and log files from work items.</p>
							</td>
							<td>
								<ul><li class="unordered">
										
											<a href="witemhyperlink.htm" target="_blank">Add or Delete a Hyperlink in a Work Item</a>
										<br /><br />
									</li><li class="unordered">
										
											<a href="createattachments.htm" target="_blank">Create or Delete a File Attachment in a Work Item</a>
										<br /><br />
									</li><li class="unordered">
										
											<a href="saveattachment.htm" target="_blank">Open or Save a File Attached to a Work Item</a>
										<br /><br />
									</li></ul>
							</td>
						</tr></table>
				</content></div><h1 class="heading">Related Tasks</h1><div id="sectionSection1" class="section"><content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
					<h3 class="subHeading" xmlns=""></h3><table xmlns=""><tr>
								<th>
									Tasks
								</th>
								<th>
									Supporting Content
								</th>
							</tr><tr>
							<td>
								<p>
									<b>Create a custom type of link and manage available types of link.</b> You can create custom link types; export and import definitions of link types; and delete, activate, deactivate, and reactivate types of links.</p>
							</td>
							<td>
								<ul><li class="unordered">
										
											<a href="http://go.microsoft.com/fwlink/?LinkID=182586" target="_blank" alt=""><linkText xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">Working with Link Types</linkText></a> on the Microsoft Web site<br /><br />
									</li><li class="unordered">
										
											<a href="http://go.microsoft.com/fwlink/?LinkID=182587" target="_blank" alt=""><linkText xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">Customizing and Managing Link Types</linkText></a> on the Microsoft Web site<br /><br />
									</li></ul>
							</td>
						</tr><tr>
							<td>
								<p>
									<b>Create a work item that is automatically linked.</b> From a list of query results, you can create a work item that is automatically linked to an existing work item.</p>
							</td>
							<td>
								<ul><li class="unordered">
										
											<a href="createlinkedwitem.htm" target="_blank">Create a Linked Work Item</a>
										<br /><br />
									</li></ul>
							</td>
						</tr></table>
				</content></div><h1 class="heading"><span id="seeAlsoNoToggle">See Also</span></h1><div id="seeAlsoSection" class="section"><h4 class="subHeading">Concepts</h4><a href="trackingworkitems.htm" target="_blank">Tracking Bugs, Tasks, and Other Work Items</a><br /><a href="findwitems.htm" target="_blank">Finding Bugs, Tasks, and Other Work Items</a><br /><br /></div><!--[if gte IE 5]>
			<tool:tip element="seeAlsoToolTip" avoidmouse="false"/><tool:tip element="languageFilterToolTip" avoidmouse="false"/>
		<![endif]--></div><div id="footer"><hr /><p /></div></div></body></html>